package com.twetec.cms.model.po.system;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.twetec.cms.model.po.base.BasePO;

/**
 * <p>
 * 组织表
 * </p>
 *
 * @author zhxl
 * @since 2020-10-28
 */
@TableName("SYSTEM_ORG")
public class OrgPO extends BasePO {

    private static final long serialVersionUID=1L;

    /**
     * 上级id
     */
    @TableField("PID")
    private Long pid;

    /**
     * 组织名称
     */
    @TableField("NAME")
    private String name;

    /**
     * 组织编码
     */
    @TableField("ORG_CODE")
    private String orgCode;

    /**
     * 数据域
     */
    @TableField("DATA_ORG")
    private String dataOrg;


    public Long getPid() {
        return pid;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getOrgCode() {
        return orgCode;
    }

    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode;
    }

    public String getDataOrg() {
        return dataOrg;
    }

    public void setDataOrg(String dataOrg) {
        this.dataOrg = dataOrg;
    }

    @Override
    public String toString() {
        return "OrgPO{" +
        "pid=" + pid +
        ", name=" + name +
        ", orgCode=" + orgCode +
        ", dataOrg=" + dataOrg +
        "}";
    }
}
